import {Setting} from '@store/types';
const defaultSetting = JSON.parse(sessionStorage.getItem("sys_setting") || "{}")

export default {
  /**
   * @description 配置显示在浏览器标签的title
   */
  // title: "vue3.x + TS + Vite",
  /**
   * @description 是否使用国际化，默认为false
   *              如果不使用，则需要在路由中给需要在菜单中展示的路由设置meta: {title: 'xxx'}
   *              用来在菜单中显示文字
   */
  useI18n: false,
  /**
   * @description api请求基础路径
   */

  baseUrl: "http://127.0.0.1:81", 
  /**
   * @description 默认打开的首页的路由name值，默认为home
   */
  homeName: "main",
  noaccess: ["home", "403", "404", "500"],
  /**
   * @description 主题颜色
   */
  primaryColors: [
    "#409eff",
    "#13C2C2",
    "#F5222D",
    "#722ED1",
    "#f7acbc",
    "#ef5b9c",
    "#bd6758",
    "#f47920",
    "#2e3a1f",
    "#b2d235",
    "#121a2a",
    "#6a6da9",
    "#867892",
    "#fcaf17",
    "#76becc",
    "#1b315e",
    "#b4532a",
    "#008792",
  ],
  /**
   * @description 系统默认配置项
   */
  defaultSetting: Object.assign(
    {
      themeId: "dark",
      layoutId: "ltr",//ttb顶部菜单,ltr左侧菜单
      primaryColor: "#409eff",
      isGray: false,
    },
    defaultSetting as Setting
  ),
};
